import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'login',
      component: function (resolve) {
        require(['../views/login.vue'], resolve)
      }
    },
    {
      path: '/index',
      name: 'index',
      component: function (resolve) {
        require(['../views/index.vue'], resolve)
      }
    },
    {
      path: '/integralFood',
      name: 'integralFood',
      component: function (resolve) {
        require(['../views/integralFood.vue'], resolve)
      }
    },
    {
      path: '/consignRecord',
      name: 'consignRecord',
      component: function (resolve) {
        require(['../views/consignRecord.vue'], resolve)
      }
    },
    {
      path: '/order',
      name: 'order',
      component: function (resolve) {
        require(['../views/order.vue'], resolve)
      }
    },
    {
      path: '/lockerAdmin',
      name: 'lockerAdmin',
      component: function (resolve) {
        require(['../views/lockerAdmin.vue'], resolve)
      }
    },
    {
      path: '/adminAuthority',
      name: 'adminAuthority',
      component: function (resolve) {
        require(['../views/adminAuthority.vue'], resolve)
      }
    },
    {
      path: '/admin',
      name: 'admin',
      component: function (resolve) {
        require(['../views/admin.vue'], resolve)
      }
    },
    {
      path: '/roleAuthority',
      name: 'roleAuthority',
      component: function (resolve) {
        require(['../views/roleAuthority.vue'], resolve)
      }
    },
    {
      path: '/modifyPwd',
      name: 'modifyPwd',
      component: function (resolve) {
        require(['../views/modifyPwd.vue'], resolve)
      }
    }
  ]
})
